package org.example.controller;

import jakarta.annotation.Resource;
import org.example.service.EmpService;
import org.example.util.JsonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther:Liu
 * @Testname:EmpController
 * @Date:2025/8/5 9:59
 */
@RestController
@RequestMapping("/EmpController")
public class EmpController {
    @Resource
    private EmpService empService;


    @GetMapping("/findAll")
    public JsonResult find(){
        return empService.findAll();
    }
}
